<?
	include('chksession.php');
	include('conn.php');
	session_start();
    $data = file_get_contents("php://input");
    $objData = json_decode($data);
	
	   $msg='';
	   $orderid =$objData->'orderid';
	   $orderdate= $objData->'orderdate';
       $refnumber= $objData->'refnumber';
	   $customername= $objData->'customername';
	   $contactnumber= $objData->'contactnumber';
	   $deliverydate= $objData->'deliverydate';
	   $soldby= $objData->'soldby';
	   $deliveredby= $objData->'deliveredby';
	   $glassfrom= $objData->'glassfrom';
	   $note= $objData->'note';
	   $remarks = $objData->'remarks';
	   $grandtotal = $objData->'grandtotal';
	   $advreceived = $objData->'advreceived';
	   $enteredby = $objData->'enteredby';
	   $modifiedby = $objData->'modifiedby';
	   $modifieddate = $objData->',modifieddate';
	   	
	$sqlc="insert into ordertranmast(orderdate,refnumber,customername,contactnumber,deliverydate,soldby,deliveredby,glassfrom,note,remarks,grandtotal, advreceived,enteredby,entrydt,modifiedby,modifieddate)
		values('".$orderdate."','".$refnumber."','".$customername."','".$contactnumber."','".$deliverydate."','".$soldby."','".$deliveredby."','".$glassfrom."','".$note."','".$remarks."','".$grandtotal."','".$advreceived."','".$enteredby."',sysdate(),'".$modifiedby."','".$modifieddate."')";
		$resc=mysql_query($sqlc);
		if($res)
			$msg='Record saved successfully';			
		echo $msg;
?>